package Logic.Guild.Event;

import FrameWork.EventBus.IEvent;
import FrameWork.Model.Player;

public class RespJoinGuildEvent implements IEvent {
    private final int guildId;
    private final Player player;
    private int gold;                               //需要消费的金钱
    private byte mod;                               //当前模式
    private byte result;
    //mod
    public static final byte REQ_CONSUME_GOLD =0;   //请求消费金钱
    public static final byte FINAL = 1;             //返回结果阶段
    //result
    public static final byte SUCCESS =1;            //成功加入公会
    public static final byte FULL_LOAD = 2;         //目标公会已经满人
    public static final byte ERROR =3;              //系统错误

    public RespJoinGuildEvent(int guildId, Player player){
        this.guildId = guildId;
        this.player = player;
    }

    public int getGuildId() {
        return guildId;
    }

    public Player getPlayer() {
        return player;
    }

    public int getGold() {
        return gold;
    }

    public void setGold(int gold) {
        this.gold = gold;
    }

    public byte getMod() {
        return mod;
    }

    public void setMod(byte mod) {
        this.mod = mod;
    }

    public byte getResult() {
        return result;
    }

    public void setResult(byte result) {
        this.result = result;
    }

    public static byte getReqConsumeGold() {
        return REQ_CONSUME_GOLD;
    }

    public static byte getFINAL() {
        return FINAL;
    }

    public static byte getSUCCESS() {
        return SUCCESS;
    }

    public static byte getFullLoad() {
        return FULL_LOAD;
    }

    public static byte getERROR() {
        return ERROR;
    }
}
